<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--引入别的页面-->
    <span th:replace="header.html::head"></span>
    <div th:text="${hello}">我是被替换的</div>
    <input th:value="${hello}">
    <a th:text="${hello}">我是被替换的</a>
    <a th:utext="${hello}">我是被替换的</a><br>
    ----------[[${hello}]]----------<br>
    <table>
        <tr th:each="name,st:${list}">
            <td th:text="${st.index}"></td>
            <td th:text="${st.count}"></td>
            <td>:</td>
            <td th:text="${name}"></td>
        </tr>
    </table><br>

    <div th:text="${num == 10}?'是10':'不是10'"></div>
    <div th:if="${num == 10}">是10</div>
    <div th:unless="${num == 10}">不是10</div>
    <div th:text="${session.h}"></div>

    <!--引入别的页面-->
    <span th:replace="header.html::end"></span>
</body>
</html>